import Vue from 'vue';
import Vuex from 'vuex';
import RootStore from '@/store/root-store/index.js';
import Example from '@/store/modules/example.js'; // 项目比较小使用文件
import ExampleModule from '@/store/modules/example-module-store/index.js'; // 项目比较大使用文件夹

Vue.use(Vuex);

export default new Vuex.Store({
    state: RootStore.state,
    getters: RootStore.getters,
    mutations: RootStore.mutations,
    actions: RootStore.actions,
    modules: {
        Example,
        ExampleModule
    }
});
